package com.woniuxy.company5.controller;

import com.woniuxy.company5.entity.MacType;
import com.woniuxy.company5.service.MacTypeService;
import com.woniuxy.company5.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/macType")
public class MacTypeController {
    @Resource
    private MacTypeService macTypeService;

    @GetMapping("")
    public Result selAll(){
        List<MacType> list = macTypeService.selAll();
        return Result.ok().data("typeList",list);
    }

}
